﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetExtensions.Core.Jobs
{
    [AttributeUsage(AttributeTargets.Class)]
    public class JobAttribute : Attribute
    {
        public JobAttribute(params string[] crons)
        {
            Cron = crons;
        }
        public JobAttribute(bool disable, params string[] crons)
        {
            Disabled = disable;
            Cron = crons;
        }
        public string[] Cron { get; set; }
        public bool Disabled { get; set; }
        public string Description { get; set; }
        public string Name { get; set; }
    }
}
